import React from 'react'
import Home from '../views/home'
import Login from '../views/login'
import ActiveIntegral from '../views/integral/active'
import SaleIntegral from '../views/integral/sale'
import Work from '../views/work'
const routerConfig = [
    {
        path:'/home',
        component:Home,
        children:[
            {
                path:'/home/work',
                component:Work,
            },
            {
                path:'/home/getintegral/active',
                component:ActiveIntegral,
            },
            {
                path:'/home/getintegral/sale',
                component:SaleIntegral,
            },
            {
                path:'/home/payintegral/class',
                component:()=><div>品类管理</div>,
            },
            {
                path:'/home/payintegral/store',
                component:()=><div>商城管理</div>,
            },
            {
                path:'/home/payintegral/shop',
                component:()=><div>商品管理</div>,
            },
            {
                path:'/home/payintegral/order',
                component:()=><div>订单管理</div>,
            },
            {
                path:'/home/dataintegral/get',
                component:()=><div>积分获取</div>,
            },
            {
                path:'/home/dataintegral/change',
                component:()=><div>积分变更</div>,
            }, 
            {
                path:'/home/dataintegral/balance',
                component:()=><div>积分平衡</div>,
            },
            {
                path:'/home/dataintegral/vip',
                component:()=><div>会员积分明细</div>,
            },{
                from:'/home',
                to:'/home/work'
            }
        ]
    },
    {
        path:'/login',
        component:Login
    },
    {
        from:'/',
        to:'/login'
    }
]

export default routerConfig